package com.fxwater.biz.service.impl;

import com.fxwater.biz.domain.GgDmInfo;
import com.fxwater.biz.mapper.GgDmInfoMapper;
import com.fxwater.biz.service.GgDmService;
import com.fxwater.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GgDmServiceImpl implements GgDmService {

    @Autowired
    private GgDmInfoMapper ggDmInfoMapper;
    @Override
    public int removeGgdm(String ids) {
        return ggDmInfoMapper.removeGgdm(Convert.toStrArray(ids));
    }

    @Override
    public int addGgDm(GgDmInfo ggDmInfo) {
        return ggDmInfoMapper.addGgDm(ggDmInfo);
    }

    @Override
    public int editSaveGgDmInfo(GgDmInfo ggDmInfo) {
        return ggDmInfoMapper.editSaveGgDmInfo(ggDmInfo);
    }

    @Override
    public List<GgDmInfo> selectGgDmInfoList(GgDmInfo ggDmInfo) {
        return ggDmInfoMapper.selectGgDmInfoList(ggDmInfo);
    }
}
